<!-- components/ProfileCard.vue -->
<script setup lang="ts">
// 接收红娘团队信息
const props = defineProps({
  image: String,
  name: String,
  description: String,
})

const connect = () => {
  console.log('Connecting...')
}
</script>

<template>
  <view class="profile-card">
    <image :src="props.image" class="profile-image"></image>
    <view class="profile-info">
      <view class="profile-name">{{ props.name }}</view>
      <view class="profile-description">{{ props.description }}</view>
      <button class="profile-button" @click="connect">+ 找她牵线</button>
    </view>
  </view>
</template>

<style lang="scss">
.profile-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
  -moz-box-shadow: 2px #06c;
  -webkit-box-shadow: 2px #06c;
  box-shadow: 4px 4px 9px -2px #06c;
}

.profile-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

.profile-info {
  margin-top: 8px;
  .profile-button {
    width: 250rpx;
  }
}

.profile-name {
  font-size: 30rpx;
  font-weight: 500;
  color: black;
}

.profile-description {
  margin: 8px 0;
  font-size: 26rpx;
  font-weight: 300;
}
button {
  background: linear-gradient(to right, #abdce9, #41ade3);
  color: white;
  border: none;
  border-radius: 3rem; // 设置为25px使按钮两端变为圆形
  font-size: 26rpx;
  cursor: pointer;
  // transition: background 0.3s ease;
}
</style>
